// 导航栏相关 混入
export default {
  data() {
    return {
      paddingTop: '0',
      windowH: 0,
      styleMainH: '0',
      // 导航组件参数
      navH: 0, //导航栏总高度
      statusBarH: 0, //状态栏高度
      customNavBarH: 0, //自定义部分高度
    }
  },
  mounted() {
    this.Fun_init()
    this.paddingTop = this.navH
    this.windowH = wx.getSystemInfoSync().windowHeight

    this.styleMainH = this.windowH - this.paddingTop
  },
  methods: {
    // 初始化数据
    Fun_init() {
      this.customNavBarH = uni.getStorageSync('customNavBarH')
      this.navH = uni.getStorageSync('navH')
      this.statusBarH = uni.getStorageSync('statusBarH')
    },
  },
}
